﻿using System;
using Restbucks;
using Restbucks.Server.Resources;
using Restbucks.Server.Activities;

namespace Restbucks.Server
{
    public class RestbucksResourceFactory 
    {
        public static OrderResource GetOrderResource()
        {
            return new OrderResource();
        }

        public object GetInstance(Type serviceType)
        {
        	return Activator.CreateInstance(serviceType, new object[] {OrderRepository.Instance});
        }

        public void ReleaseInstance(object service)
        {
            //NO OP
        }
    }
}